package com.gxar.navigation.server.base.model.arithmetic.dto;

/**
 * 路段DTO
 *
 * @author Linsy
 */
public class RouteSegmentDTO {
    /**
     * 路段名称
     */
    private final Long id;
    /**
     * 开始点位
     */
    private final PointDTO startPoint;
    /**
     * 结束点位
     */
    private final PointDTO endPoint;
    /**
     * 路段的半径（以米为单位）
     */
    private final int radius;

    public RouteSegmentDTO(Long id, PointDTO startPoint, PointDTO endPoint, int radius) {
        this.id = id;
        this.startPoint = startPoint;
        this.endPoint = endPoint;
        this.radius = radius;
    }

    public Long getId() {
        return id;
    }

    public PointDTO getStartPoint() {
        return startPoint;
    }

    public PointDTO getEndPoint() {
        return endPoint;
    }

    public int getRadius() {
        return radius;
    }
}